package com.sangu.dianxiu.bean.basedata;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 区县类
 * Created by sg2 on 2016/1/8.
 */
public class CountyEntity implements Serializable{

    /**
     * rc : 0
     * counties : [{"id":1,"name":"上城区","cityId":1},{"id":2,"name":"下城区","cityId":1},{"id":3,"name":"滨江区","cityId":1},{"id":4,"name":"拱墅区","cityId":1},{"id":5,"name":"江干区","cityId":1},{"id":6,"name":"余杭区","cityId":1},{"id":7,"name":"西湖区","cityId":1},{"id":8,"name":"萧山区","cityId":1},{"id":9,"name":"衢江区","cityId":2},{"id":10,"name":"柯城区","cityId":2},{"id":11,"name":"开化县","cityId":2},{"id":12,"name":"常山县","cityId":2},{"id":13,"name":"龙游县","cityId":2},{"id":14,"name":"江山市","cityId":2}]
     */

    private int rc;
    /**
     * id : 1
     * name : 上城区
     * cityId : 1
     */

    private ArrayList<CountiesEntity> counties;

    public void setRc(int rc) {
        this.rc = rc;
    }

    public void setCounties(ArrayList<CountiesEntity> counties) {
        this.counties = counties;
    }

    public int getRc() {
        return rc;
    }

    public ArrayList<CountiesEntity> getCounties() {
        return counties;
    }

    public static class CountiesEntity {
        private int id;
        private String name;
        private int cityId;

        public void setId(int id) {
            this.id = id;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public int getId() {
            return id;
        }

        public String getName() {
            return name;
        }

        public int getCityId() {
            return cityId;
        }
    }
}
